/**
 * @filename:UserVip 2023-4-20
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**   
 * @Description:TODO(用户VIP等级实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_user_vip")
@ApiModel(value="sn_user_vip对象", description="用户VIP等级表")
public class UserVip extends Model<UserVip> {

	private static final long serialVersionUID = 1681951723546164L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "name") 	
	@ApiModelProperty(name = "name" , value = "说明")
    private String name;
    
    @TableField(value = "discount") 	
	@ApiModelProperty(name = "discount" , value = "VIP折扣")
    private Double discount;
    
    @TableField(value = "amount") 	
	@ApiModelProperty(name = "amount" , value = "充值额度")
    private Double amount;
    
    @TableField(value = "average") 	
	@ApiModelProperty(name = "average" , value = "月平均额度")
    private Double average;
    
    @TableField(value = "comment") 	
	@ApiModelProperty(name = "comment" , value = "备注")
    private String comment;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
